import projectManage from "@/apis/projectManage"

const projectManageAdd = {
  state: {},
  effects: (dispatch) => ({
    async add(payload, state) {
      const data = await projectManage.createProject(payload);
      if (data) {
        return true;
      }
      return false;
    }
  }),
  reducers: {
    save(prevState, payload) {
      return {
        ...prevState,
        ...payload
      };
    }
  }
}

export default projectManageAdd;